<?PHP
require_once 'action/connection.php';
session_start();
$uName = $_POST['uname'];
$pWord = $_POST['pwd'];
$sql=mysql_query("SELECT * FROM users_tbl WHERE uname='$uName' AND pwd='$pWord'");
$count=mysql_num_rows($sql);
$row=mysql_fetch_assoc($sql);
if($count){
 	echo'true';
	$_SESSION['uName'] = $row['uname'];	
	$_SESSION['pWord']=$row['pwd'];
}
else
 	echo'false';
?>